$(document).ready(function() 
{
    $(".colorbox").colorbox({width:"720px", height:"144px"});
         
    $(document).bind('cbox_complete', function(){
        document.getElementById('identifiant').value = document.getElementById('recherche_compte').value;
        document.getElementById('pass').focus()
    }) 
    
    $("#recherche_compte").autocomplete("../commun_shop/modules/recherche_compte.php",
    {
        minChars: 2,
        width: 200,
        matchContains: true,
        highlightItem: false,
        formatItem: function(data, i, n, value)
        {
            return value.split("#")[0]+"<br/>"+value.split("#")[1];
        },
        formatResult: function(data, value)
        {
            return value.split("#")[0];
            $('#quantite_13').focus();
        }
    });
    
    onLoad = document.getElementById('recherche_compte').focus();
    
    $(document).bind('keydown', 'f1', function(){ 
        document.getElementById('recherche_compte').value=''; 
    });
})